<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="description"/>
<meta name="keywords" content="keywords"/> 
<meta name="author" content="author"/> 
<title>{$pageTitle} A.A.C.</title>
<link rel="stylesheet" href="view/deadtouch/style.css" type="text/css" media="screen" />
</head>

<body>
<div id="layout_wrapper">
<div id="layout_edgetop"></div>

<div id="layout_container">

	<div id="site_title">

		<h1 class="left"><a href="?m=index">{$pageTitle}</a></h1>
		<h2 class="right">DeadTouch, 8.2x client protocol.</h2>

		<div class="clearer">&nbsp;</div>

	</div>

	<div id="top_separator"></div>

	<div id="navigation">
	</div>

	<div class="spacer h5"></div>

	<div id="main">

		<div class="left" id="main_left">

			<div id="main_left_content">{$pageContent}</div>
		
		</div>

		<div class="right" id="main_right">
	
			<div id="sidebar">
				<div id="onlineplace">
					<div class="box_title">Server status</div>
					<div class="box_body">
						Retrieving information from server...
					</div>
					<div class="box_bottom"></div>
				</div>
				<div class="box">
					<script type="text/javascript" src="./ajax.js"></script>
				</div>
				
				{if $loggedIn eq 0}
				<div class="box">
					<div class="box_title">Login</div>
					<div class="box_body">
						<form method="post" id="loginForm" action="?m=login&a=verify">
						<div>
							<table class="search">
							<tr>
								<td style="height: 25px"><input style="color: gray;" type="text" name="acc" id="accNo" /></td>
							</tr>
							<tr>
								<td><input style="color: gray;" type="password" name="password" id="password" /></td>
								<td style="padding-left: 10px"><input type="image" src="view/deadtouch/img/button_go.gif" /></td>
							</tr>
							</table>
							<ul>
								<li><a href="?m=account&a=recovery" style="color: red;">Forgot a password?</a></li>
								<li><a href="?m=account&a=register" style="color: green; font-weight: bold;">Register a new account</a></li>
						</div>
						</form>
					</div>
					<div class="box_bottom"></div>
					
				</div>
				{/if}
	
				<div class="box">
					<div class="box_title">Menu</div>
					<div class="box_body">
						<ul>
							<li><a href="?m=index">Main</a></li>
							<li><a href="?m=highscores">Highscores</a></li>
							<li><a href="?m=character&a=search">Search a character</a></li>
							<li><a href="?m=monsters">Monsters</a></li>
							<li><a href="?m=spells">Spells</a></li>
						</ul>
					</div>
				</div>
					
				{if $loggedIn neq 0}
				<div class="box">
					<div class="box_title">Account Menu</div>
					<div class="box_body">
						<ul>
							<li><a href="?m=account">Account Page</a></li>
							{if $isGM eq 1}
							<li><a href="?m=admin" style="font-weight: bold;">Admin Panel</a></li>
							{/if}
							<li><a href="?m=login&a=out" style="color: red">Logout</a></li>

						</ul>
					</div>
					<div class="box_bottom"></div>
					<div class="box_bottom"></div>
				</div>
				{/if}
			</div>
		</div>

		<div class="clearer">&nbsp;</div>

	</div>

	<div id="footer">

		<div class="left">&#169;2008 Powered by <a href="http://code.google.com/p/deadtouch/">DeadTouch</a> A.A.C., <a href="http://otserv-aac.info/">Modified POT</a>, <a href="http://www.smarty.net/">Smarty Template Engine</a></div>

		<div class="right"><a href="http://templates.arcsin.se/">Website template</a> by <a href="http://arcsin.se/">Arcsin</a></div>

		<div class="clearer">&nbsp;</div>
	
	</div>

</div>
<div id="layout_edgebottom"></div>
</div>

</body>
</html>